package messagesPacks;
import java.util.Hashtable;

import Entity.User;
public class UsersMSG extends GenericMessage
{
	private static final long serialVersionUID = 1L;
	private Hashtable<Integer, User> users;

	public enum op_type
	{
		ADMIN_unlock,
		ADMIN_listLocked,
		ADMIN_graduate,
		ALL_createUser,
		Manager_ViewEmployees,
		EditUser,
		Manager_AllUnsuspended,
		Manager_LateSubscribers
	};
	op_type op;
	
	public UsersMSG(op_type op)
	{
		this.type = msgType.UsersMSG;
		users=new Hashtable<Integer,User>();
		this.op = op;
	}
	public Hashtable<Integer, User> getUsers()
	{
		return this.users;
	}
	public void setUsers(Hashtable<Integer, User> users)
	{
		this.users.putAll(users);
	}
	

	public void addUser(int num, User user)
	{
		this.users.put(num,user);
	}
	
	public User getUser(int num)
	{
		return this.users.get(num);
	}
	
	public op_type getOp()
	{
		return this.op;
	}
	
}
